#!/usr/bin/python
# -*- coding: utf-8 -*-


import wx
import MainMenuBar
import ContextMenu

class Example(wx.Frame):
    
    def __init__(self, *args, **kwargs):
        super(Example, self).__init__(*args, **kwargs)
        
        self.InitUI()
        
    def InitUI(self):

        self.menubar = MainMenuBar.MyMenu(self)
        contextMenu = ContextMenu.ContextMenu(self)
        
        self.SetMenuBar(self.menubar)

        self.SetSize((600, 480))
        self.SetTitle('CTPTrader')
        self.Centre()
        self.Show(True)

def main():
    
    ex = wx.App()
    Example(None)
    ex.MainLoop()    


if __name__ == '__main__':
    main()